package component;

import java.awt.BorderLayout;
import java.awt.Color;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import javax.swing.*;
import javax.swing.border.EtchedBorder;

public class MyStatusBar extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	DateFormat datefomat=new SimpleDateFormat("dd/MM/yyyy");
	DateFormat datefomat1=new SimpleDateFormat("hh:mm:ss");
	Calendar cal=Calendar.getInstance();
	JLabel lb1=new JLabel();
	String date;
	String date1;
	public MyStatusBar() {
		setLayout(new BorderLayout());
		setBorder(new EtchedBorder());
		JLabel lb=new JLabel("Welcome");
		lb.setForeground(Color.BLUE);
		add(lb,BorderLayout.WEST);
		JTextField txt=new JTextField("Trạng thái chưa đăng nhập");
		txt.setForeground(Color.BLUE);
		txt.setEditable(false);
		add(txt,BorderLayout.CENTER);
		lb1.setForeground(Color.BLUE);
		add(lb1,BorderLayout.EAST);
	}
}
